package multimanipulators.converters.simple;

import java.io.OutputStreamWriter;

import multimanipulators.interfaces.Converters;

public class Converter_replaceString implements Converters{
	private String replacewith;
	public Converter_replaceString(String replacewith) {
		this.replacewith = replacewith;
	}
	public String getname(){
		return Converter_replaceString.class.getName();
	}
	public void manipulate(char[] buffer, OutputStreamWriter doutstream)throws Exception {
		doutstream.write(replacewith);
		//buffer=null;
	}
	public void debugmanipulate(char[] buffer, OutputStreamWriter doutstream)throws Exception {
		doutstream.write("<*>"+new String(buffer)+"</*>"+replacewith);
		//buffer=null;
	}
	@Override
	public int compareTo(Object o) {
		// TODO Auto-generated method stub
		return 0;
	}
}
